/* 
 * Copyright (c) 2022 Huawei Technologies Co.,Ltd.
 *
 * openGauss is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 *           http://license.coscl.org.cn/MulanPSL2
 *        
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

package org.opengauss.mppdbide.view.core;

import org.eclipse.swt.graphics.Image;

import org.opengauss.mppdbide.utils.IMessagesConstants;
import org.opengauss.mppdbide.utils.loader.MessageConfigLoader;
import org.opengauss.mppdbide.view.utils.icon.IconUtility;

/**
 * 
 * Title: class
 * 
 * Description: The Class LoadingUIElement.
 *
 * @since 3.0.0
 */
public class LoadingUIElement {
    private static final String DISPLAY_NAME = MessageConfigLoader.getProperty(IMessagesConstants.LOADING_NS);
    private static final Image DISPLAY_IMAGE = IconUtility.getIconImage(IconUtility.ICO_LOAD, LoadingUIElement.class);

    /**
     * Gets the display name.
     *
     * @return the display name
     */
    public String getDisplayName() {
        return DISPLAY_NAME;
    }

    /**
     * Gets the displayimage.
     *
     * @return the displayimage
     */
    public Image getDisplayimage() {
        return DISPLAY_IMAGE;
    }
}
